<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CANopenNode: socketCAN/CO_epoll_interface.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CANopenNode
   </div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('CO__epoll__interface_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">CO_epoll_interface.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="CO__epoll__interface_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#ifndef CO_EPOLL_INTERFACE_H</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#define CO_EPOLL_INTERFACE_H</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="CANopen_8h.html">CANopen.h</a>&quot;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;sys/epoll.h&gt;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;sys/eventfd.h&gt;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &lt;sys/timerfd.h&gt;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structCO__epoll__t.html">   89</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structCO__epoll__t.html#a6e4aeb640b634a49a290aa9b4bc3b517">   91</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structCO__epoll__t.html#a6e4aeb640b634a49a290aa9b4bc3b517">epoll_fd</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="structCO__epoll__t.html#af0e85776b360999b0830c943eb4505eb">   93</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structCO__epoll__t.html#af0e85776b360999b0830c943eb4505eb">event_fd</a>;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="structCO__epoll__t.html#aef151da1fe1a293f34f4f546c24bb0f7">   95</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structCO__epoll__t.html#aef151da1fe1a293f34f4f546c24bb0f7">timer_fd</a>;</div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structCO__epoll__t.html#a0595fb48d72a8592e6649e3de7b3477c">   97</a></span>&#160;    <a class="code" href="group__CO__dataTypes.html#ga33594304e786b158f3fb30289278f5af">uint32_t</a> <a class="code" href="structCO__epoll__t.html#a0595fb48d72a8592e6649e3de7b3477c">timerInterval_us</a>;</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="structCO__epoll__t.html#a46f38181dc8483ce83af566ee3f8aff3">  100</a></span>&#160;    <a class="code" href="group__CO__dataTypes.html#ga33594304e786b158f3fb30289278f5af">uint32_t</a> <a class="code" href="structCO__epoll__t.html#a46f38181dc8483ce83af566ee3f8aff3">timeDifference_us</a>;</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="structCO__epoll__t.html#a0cb262435f594f9d7ea42eb976294262">  103</a></span>&#160;    <a class="code" href="group__CO__dataTypes.html#ga33594304e786b158f3fb30289278f5af">uint32_t</a> <a class="code" href="structCO__epoll__t.html#a0cb262435f594f9d7ea42eb976294262">timerNext_us</a>;</div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="structCO__epoll__t.html#a9fa1c50ecb111049eda7e45132d3dfd1">  105</a></span>&#160;    <a class="code" href="group__CO__dataTypes.html#ga449976458a084f880dc8e3d29e7eb6f5">bool_t</a> <a class="code" href="structCO__epoll__t.html#a9fa1c50ecb111049eda7e45132d3dfd1">timerEvent</a>;</div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="structCO__epoll__t.html#aa047c5d68bb87515a1089cf5c75d847f">  107</a></span>&#160;    <a class="code" href="group__CO__dataTypes.html#gad27ed092432b64ff558d2254c278720f">uint64_t</a> <a class="code" href="structCO__epoll__t.html#aa047c5d68bb87515a1089cf5c75d847f">previousTime_us</a>;</div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="structCO__epoll__t.html#a759aff5ae2eb019aa2ce8117f9ce9836">  109</a></span>&#160;    <span class="keyword">struct </span>itimerspec tm;</div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="structCO__epoll__t.html#a5ace69fd90506eae4f3f538fcb160c01">  111</a></span>&#160;    <span class="keyword">struct </span>epoll_event ev;</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="structCO__epoll__t.html#ac4113f19873fc3217e1e997a28f5bdd4">  113</a></span>&#160;    <a class="code" href="group__CO__dataTypes.html#ga449976458a084f880dc8e3d29e7eb6f5">bool_t</a> <a class="code" href="structCO__epoll__t.html#ac4113f19873fc3217e1e997a28f5bdd4">epoll_new</a>;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;} <a class="code" href="structCO__epoll__t.html">CO_epoll_t</a>;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<a class="code" href="group__CO__driver.html#ga1cb2d3466eb0c6d267f3b5ff1a0d9532">CO_ReturnError_t</a> <a class="code" href="group__CO__epoll__interface.html#ga9bb687bf26f711ce0573581984b79443">CO_epoll_create</a>(<a class="code" href="structCO__epoll__t.html">CO_epoll_t</a> *ep, <a class="code" href="group__CO__dataTypes.html#ga33594304e786b158f3fb30289278f5af">uint32_t</a> timerInterval_us);</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__CO__epoll__interface.html#ga72c3ebdede1207e55e0915128f5a2c6a">CO_epoll_close</a>(<a class="code" href="structCO__epoll__t.html">CO_epoll_t</a> *ep);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160; </div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__CO__epoll__interface.html#ga5cfd1df62494cf9d9e85dbb9fe981a57">CO_epoll_wait</a>(<a class="code" href="structCO__epoll__t.html">CO_epoll_t</a> *ep);</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160; </div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__CO__epoll__interface.html#ga2aef637d4f2f818a7d95a7bfac251132">CO_epoll_processLast</a>(<a class="code" href="structCO__epoll__t.html">CO_epoll_t</a> *ep);</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160; </div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__CO__epoll__interface.html#ga3668c8b600022ffecdd3c2fa643b5e7d">CO_epoll_initCANopenMain</a>(<a class="code" href="structCO__epoll__t.html">CO_epoll_t</a> *ep, <a class="code" href="structCO__t.html">CO_t</a> *co);</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160; </div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__CO__epoll__interface.html#gad79d73fbac0e816f81f75507bd164515">CO_epoll_processMain</a>(<a class="code" href="structCO__epoll__t.html">CO_epoll_t</a> *ep,</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;                          <a class="code" href="structCO__t.html">CO_t</a> *co,</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;                          <a class="code" href="group__CO__dataTypes.html#ga449976458a084f880dc8e3d29e7eb6f5">bool_t</a> enableGateway,</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;                          <a class="code" href="group__CO__NMT__Heartbeat.html#gaf42f056a571b8e17a2d74428d1a49674">CO_NMT_reset_cmd_t</a> *reset);</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160; </div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160; </div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__CO__epoll__interface.html#ga6ed67073bc96e575bec6fceb627b1245">CO_epoll_processRT</a>(<a class="code" href="structCO__epoll__t.html">CO_epoll_t</a> *ep,</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;                        <a class="code" href="structCO__t.html">CO_t</a> *co,</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;                        <a class="code" href="group__CO__dataTypes.html#ga449976458a084f880dc8e3d29e7eb6f5">bool_t</a> realtime);</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160; </div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160; </div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;<span class="preprocessor">#if ((CO_CONFIG_GTW) &amp; CO_CONFIG_GTW_ASCII) || defined CO_DOXYGEN</span></div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160; </div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="group__CO__epoll__interface.html#gad5a4218d5775fd7cda81a8015e1ee6f0">  220</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    CO_COMMAND_IF_DISABLED = -100,</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    CO_COMMAND_IF_STDIO = -2,</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    CO_COMMAND_IF_LOCAL_SOCKET = -1,</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    CO_COMMAND_IF_TCP_SOCKET_MIN = 0,</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    CO_COMMAND_IF_TCP_SOCKET_MAX = 0xFFFF</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;} <a class="code" href="group__CO__epoll__interface.html#gad5a4218d5775fd7cda81a8015e1ee6f0">CO_commandInterface_t</a>;</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160; </div>
<div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="structCO__epoll__gtw__t.html">  231</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00233"></a><span class="lineno"><a class="line" href="structCO__epoll__gtw__t.html#a7804e63fe1f7f5f6df68b32d8c25da2d">  233</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structCO__epoll__gtw__t.html#a7804e63fe1f7f5f6df68b32d8c25da2d">epoll_fd</a>;</div>
<div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="structCO__epoll__gtw__t.html#a96544bbc848d4627f3147496cc40d9f4">  236</a></span>&#160;    <a class="code" href="group__CO__dataTypes.html#gadb828ef50c2dbb783109824e94cf6c47">int32_t</a> <a class="code" href="structCO__epoll__gtw__t.html#a96544bbc848d4627f3147496cc40d9f4">commandInterface</a>;</div>
<div class="line"><a name="l00238"></a><span class="lineno"><a class="line" href="structCO__epoll__gtw__t.html#a876c2b8ae6e9585155c5cf035c876c91">  238</a></span>&#160;    <a class="code" href="group__CO__dataTypes.html#ga33594304e786b158f3fb30289278f5af">uint32_t</a> <a class="code" href="structCO__epoll__gtw__t.html#a876c2b8ae6e9585155c5cf035c876c91">socketTimeout_us</a>;</div>
<div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="structCO__epoll__gtw__t.html#a94ff0ff20f321b749202d9f3aa92a66d">  240</a></span>&#160;    <a class="code" href="group__CO__dataTypes.html#ga33594304e786b158f3fb30289278f5af">uint32_t</a> <a class="code" href="structCO__epoll__gtw__t.html#a94ff0ff20f321b749202d9f3aa92a66d">socketTimeoutTmr_us</a>;</div>
<div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="structCO__epoll__gtw__t.html#a5f11979c2bc301d6b8cc7ddce8d45688">  242</a></span>&#160;    <span class="keywordtype">char</span> *<a class="code" href="structCO__epoll__gtw__t.html#a5f11979c2bc301d6b8cc7ddce8d45688">localSocketPath</a>;</div>
<div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="structCO__epoll__gtw__t.html#a418eccf136c9f8e081d61f98289e0759">  244</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structCO__epoll__gtw__t.html#a418eccf136c9f8e081d61f98289e0759">gtwa_fdSocket</a>;</div>
<div class="line"><a name="l00246"></a><span class="lineno"><a class="line" href="structCO__epoll__gtw__t.html#a79b9c968b1f44ad5a4c55c36174d6898">  246</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structCO__epoll__gtw__t.html#a79b9c968b1f44ad5a4c55c36174d6898">gtwa_fd</a>;</div>
<div class="line"><a name="l00248"></a><span class="lineno"><a class="line" href="structCO__epoll__gtw__t.html#ae529dc4279406811f0b97593816e863c">  248</a></span>&#160;    <a class="code" href="group__CO__dataTypes.html#ga449976458a084f880dc8e3d29e7eb6f5">bool_t</a> <a class="code" href="structCO__epoll__gtw__t.html#ae529dc4279406811f0b97593816e863c">freshCommand</a>;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;} <a class="code" href="structCO__epoll__gtw__t.html">CO_epoll_gtw_t</a>;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160; </div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;<a class="code" href="group__CO__driver.html#ga1cb2d3466eb0c6d267f3b5ff1a0d9532">CO_ReturnError_t</a> <a class="code" href="group__CO__epoll__interface.html#ga7165df8b37ca1ed59476773fa075470c">CO_epoll_createGtw</a>(<a class="code" href="structCO__epoll__gtw__t.html">CO_epoll_gtw_t</a> *epGtw,</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;                                    <span class="keywordtype">int</span> epoll_fd,</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;                                    <a class="code" href="group__CO__dataTypes.html#gadb828ef50c2dbb783109824e94cf6c47">int32_t</a> commandInterface,</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;                                    <a class="code" href="group__CO__dataTypes.html#ga33594304e786b158f3fb30289278f5af">uint32_t</a> socketTimeout_ms,</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;                                    <span class="keywordtype">char</span> *localSocketPath);</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160; </div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__CO__epoll__interface.html#gab2f3f7bb7d885799c462e95a45563b69">CO_epoll_closeGtw</a>(<a class="code" href="structCO__epoll__gtw__t.html">CO_epoll_gtw_t</a> *epGtw);</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160; </div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__CO__epoll__interface.html#ga07eaf2c954bb09b6420acee62ff207c3">CO_epoll_initCANopenGtw</a>(<a class="code" href="structCO__epoll__gtw__t.html">CO_epoll_gtw_t</a> *epGtw, <a class="code" href="structCO__t.html">CO_t</a> *co);</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160; </div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__CO__epoll__interface.html#ga97aa0bc09684b0ed78b708198e663407">CO_epoll_processGtw</a>(<a class="code" href="structCO__epoll__gtw__t.html">CO_epoll_gtw_t</a> *epGtw,</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;                         <a class="code" href="structCO__t.html">CO_t</a> *co,</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;                         <a class="code" href="structCO__epoll__t.html">CO_epoll_t</a> *ep);</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* (CO_CONFIG_GTW) &amp; CO_CONFIG_GTW_ASCII */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160; </div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;}</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/*__cplusplus*/</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160; </div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* CO_EPOLL_INTERFACE_H */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="agroup__CO__dataTypes_html_ga33594304e786b158f3fb30289278f5af"><div class="ttname"><a href="group__CO__dataTypes.html#ga33594304e786b158f3fb30289278f5af">uint32_t</a></div><div class="ttdeci">unsigned long int uint32_t</div><div class="ttdoc">UNSIGNED32 in CANopen (0007h), 32-bit unsigned integer.</div><div class="ttdef"><b>Definition:</b> CO_driver.h:155</div></div>
<div class="ttc" id="astructCO__epoll__gtw__t_html_a7804e63fe1f7f5f6df68b32d8c25da2d"><div class="ttname"><a href="structCO__epoll__gtw__t.html#a7804e63fe1f7f5f6df68b32d8c25da2d">CO_epoll_gtw_t::epoll_fd</a></div><div class="ttdeci">int epoll_fd</div><div class="ttdoc">Epoll file descriptor, from CO_epoll_createGtw()</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:233</div></div>
<div class="ttc" id="agroup__CO__epoll__interface_html_ga6ed67073bc96e575bec6fceb627b1245"><div class="ttname"><a href="group__CO__epoll__interface.html#ga6ed67073bc96e575bec6fceb627b1245">CO_epoll_processRT</a></div><div class="ttdeci">void CO_epoll_processRT(CO_epoll_t *ep, CO_t *co, bool_t realtime)</div><div class="ttdoc">Process CAN receive and realtime functions.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.c:304</div></div>
<div class="ttc" id="agroup__CO__epoll__interface_html_gad5a4218d5775fd7cda81a8015e1ee6f0"><div class="ttname"><a href="group__CO__epoll__interface.html#gad5a4218d5775fd7cda81a8015e1ee6f0">CO_commandInterface_t</a></div><div class="ttdeci">CO_commandInterface_t</div><div class="ttdoc">Command interface type for gateway-ascii.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:220</div></div>
<div class="ttc" id="astructCO__epoll__gtw__t_html"><div class="ttname"><a href="structCO__epoll__gtw__t.html">CO_epoll_gtw_t</a></div><div class="ttdoc">Object for gateway.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:231</div></div>
<div class="ttc" id="agroup__CO__driver_html_ga1cb2d3466eb0c6d267f3b5ff1a0d9532"><div class="ttname"><a href="group__CO__driver.html#ga1cb2d3466eb0c6d267f3b5ff1a0d9532">CO_ReturnError_t</a></div><div class="ttdeci">CO_ReturnError_t</div><div class="ttdoc">Return values of some CANopen functions.</div><div class="ttdef"><b>Definition:</b> CO_driver.h:488</div></div>
<div class="ttc" id="astructCO__epoll__gtw__t_html_a5f11979c2bc301d6b8cc7ddce8d45688"><div class="ttname"><a href="structCO__epoll__gtw__t.html#a5f11979c2bc301d6b8cc7ddce8d45688">CO_epoll_gtw_t::localSocketPath</a></div><div class="ttdeci">char * localSocketPath</div><div class="ttdoc">Path in case of local socket.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:242</div></div>
<div class="ttc" id="astructCO__epoll__gtw__t_html_a79b9c968b1f44ad5a4c55c36174d6898"><div class="ttname"><a href="structCO__epoll__gtw__t.html#a79b9c968b1f44ad5a4c55c36174d6898">CO_epoll_gtw_t::gtwa_fd</a></div><div class="ttdeci">int gtwa_fd</div><div class="ttdoc">Gateway io stream file descriptor.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:246</div></div>
<div class="ttc" id="agroup__CO__dataTypes_html_ga449976458a084f880dc8e3d29e7eb6f5"><div class="ttname"><a href="group__CO__dataTypes.html#ga449976458a084f880dc8e3d29e7eb6f5">bool_t</a></div><div class="ttdeci">unsigned char bool_t</div><div class="ttdoc">Boolean data type for general use.</div><div class="ttdef"><b>Definition:</b> CO_driver.h:141</div></div>
<div class="ttc" id="agroup__CO__epoll__interface_html_ga97aa0bc09684b0ed78b708198e663407"><div class="ttname"><a href="group__CO__epoll__interface.html#ga97aa0bc09684b0ed78b708198e663407">CO_epoll_processGtw</a></div><div class="ttdeci">void CO_epoll_processGtw(CO_epoll_gtw_t *epGtw, CO_t *co, CO_epoll_t *ep)</div><div class="ttdoc">Process CANopen gateway functions.</div></div>
<div class="ttc" id="agroup__CO__dataTypes_html_gadb828ef50c2dbb783109824e94cf6c47"><div class="ttname"><a href="group__CO__dataTypes.html#gadb828ef50c2dbb783109824e94cf6c47">int32_t</a></div><div class="ttdeci">signed long int int32_t</div><div class="ttdoc">INTEGER32 in CANopen (0004h), 32-bit signed integer.</div><div class="ttdef"><b>Definition:</b> CO_driver.h:147</div></div>
<div class="ttc" id="agroup__CO__NMT__Heartbeat_html_gaf42f056a571b8e17a2d74428d1a49674"><div class="ttname"><a href="group__CO__NMT__Heartbeat.html#gaf42f056a571b8e17a2d74428d1a49674">CO_NMT_reset_cmd_t</a></div><div class="ttdeci">CO_NMT_reset_cmd_t</div><div class="ttdoc">Return code from CO_NMT_process() that tells application code what to reset.</div><div class="ttdef"><b>Definition:</b> CO_NMT_Heartbeat.h:112</div></div>
<div class="ttc" id="agroup__CO__dataTypes_html_gad27ed092432b64ff558d2254c278720f"><div class="ttname"><a href="group__CO__dataTypes.html#gad27ed092432b64ff558d2254c278720f">uint64_t</a></div><div class="ttdeci">unsigned long long int uint64_t</div><div class="ttdoc">UNSIGNED64 in CANopen (001Bh), 64-bit unsigned integer.</div><div class="ttdef"><b>Definition:</b> CO_driver.h:157</div></div>
<div class="ttc" id="agroup__CO__epoll__interface_html_ga5cfd1df62494cf9d9e85dbb9fe981a57"><div class="ttname"><a href="group__CO__epoll__interface.html#ga5cfd1df62494cf9d9e85dbb9fe981a57">CO_epoll_wait</a></div><div class="ttdeci">void CO_epoll_wait(CO_epoll_t *ep)</div><div class="ttdoc">Wait for an epoll event.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.c:138</div></div>
<div class="ttc" id="agroup__CO__epoll__interface_html_gad79d73fbac0e816f81f75507bd164515"><div class="ttname"><a href="group__CO__epoll__interface.html#gad79d73fbac0e816f81f75507bd164515">CO_epoll_processMain</a></div><div class="ttdeci">void CO_epoll_processMain(CO_epoll_t *ep, CO_t *co, bool_t enableGateway, CO_NMT_reset_cmd_t *reset)</div><div class="ttdoc">Process CANopen mainline functions.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.c:286</div></div>
<div class="ttc" id="astructCO__epoll__t_html_aef151da1fe1a293f34f4f546c24bb0f7"><div class="ttname"><a href="structCO__epoll__t.html#aef151da1fe1a293f34f4f546c24bb0f7">CO_epoll_t::timer_fd</a></div><div class="ttdeci">int timer_fd</div><div class="ttdoc">Interval timer file descriptor.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:95</div></div>
<div class="ttc" id="astructCO__epoll__gtw__t_html_a96544bbc848d4627f3147496cc40d9f4"><div class="ttname"><a href="structCO__epoll__gtw__t.html#a96544bbc848d4627f3147496cc40d9f4">CO_epoll_gtw_t::commandInterface</a></div><div class="ttdeci">int32_t commandInterface</div><div class="ttdoc">Command interface type or tcp port number, see CO_commandInterface_t.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:236</div></div>
<div class="ttc" id="agroup__CO__epoll__interface_html_ga3668c8b600022ffecdd3c2fa643b5e7d"><div class="ttname"><a href="group__CO__epoll__interface.html#ga3668c8b600022ffecdd3c2fa643b5e7d">CO_epoll_initCANopenMain</a></div><div class="ttdeci">void CO_epoll_initCANopenMain(CO_epoll_t *ep, CO_t *co)</div><div class="ttdoc">Initialization of functions in CANopen reset-communication section.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.c:232</div></div>
<div class="ttc" id="astructCO__epoll__t_html_a0cb262435f594f9d7ea42eb976294262"><div class="ttname"><a href="structCO__epoll__t.html#a0cb262435f594f9d7ea42eb976294262">CO_epoll_t::timerNext_us</a></div><div class="ttdeci">uint32_t timerNext_us</div><div class="ttdoc">Timer value in microseconds, which can be changed by application and can shorten time of next CO_epol...</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:103</div></div>
<div class="ttc" id="astructCO__epoll__gtw__t_html_a94ff0ff20f321b749202d9f3aa92a66d"><div class="ttname"><a href="structCO__epoll__gtw__t.html#a94ff0ff20f321b749202d9f3aa92a66d">CO_epoll_gtw_t::socketTimeoutTmr_us</a></div><div class="ttdeci">uint32_t socketTimeoutTmr_us</div><div class="ttdoc">Socket timeout timer in microseconds.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:240</div></div>
<div class="ttc" id="astructCO__epoll__t_html_a9fa1c50ecb111049eda7e45132d3dfd1"><div class="ttname"><a href="structCO__epoll__t.html#a9fa1c50ecb111049eda7e45132d3dfd1">CO_epoll_t::timerEvent</a></div><div class="ttdeci">bool_t timerEvent</div><div class="ttdoc">True,if timer event is inside CO_epoll_wait()</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:105</div></div>
<div class="ttc" id="astructCO__epoll__t_html"><div class="ttname"><a href="structCO__epoll__t.html">CO_epoll_t</a></div><div class="ttdoc">Object for epoll, timer and event API.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:89</div></div>
<div class="ttc" id="astructCO__epoll__t_html_ac4113f19873fc3217e1e997a28f5bdd4"><div class="ttname"><a href="structCO__epoll__t.html#ac4113f19873fc3217e1e997a28f5bdd4">CO_epoll_t::epoll_new</a></div><div class="ttdeci">bool_t epoll_new</div><div class="ttdoc">true, if new epoll event is necessary to process</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:113</div></div>
<div class="ttc" id="agroup__CO__epoll__interface_html_ga9bb687bf26f711ce0573581984b79443"><div class="ttname"><a href="group__CO__epoll__interface.html#ga9bb687bf26f711ce0573581984b79443">CO_epoll_create</a></div><div class="ttdeci">CO_ReturnError_t CO_epoll_create(CO_epoll_t *ep, uint32_t timerInterval_us)</div><div class="ttdoc">Create Linux epoll, timerfd and eventfd.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.c:63</div></div>
<div class="ttc" id="aCANopen_8h_html"><div class="ttname"><a href="CANopen_8h.html">CANopen.h</a></div><div class="ttdoc">Main CANopenNode file.</div></div>
<div class="ttc" id="astructCO__epoll__t_html_a46f38181dc8483ce83af566ee3f8aff3"><div class="ttname"><a href="structCO__epoll__t.html#a46f38181dc8483ce83af566ee3f8aff3">CO_epoll_t::timeDifference_us</a></div><div class="ttdeci">uint32_t timeDifference_us</div><div class="ttdoc">Time difference since last CO_epoll_wait() execution in microseconds.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:100</div></div>
<div class="ttc" id="astructCO__epoll__gtw__t_html_a876c2b8ae6e9585155c5cf035c876c91"><div class="ttname"><a href="structCO__epoll__gtw__t.html#a876c2b8ae6e9585155c5cf035c876c91">CO_epoll_gtw_t::socketTimeout_us</a></div><div class="ttdeci">uint32_t socketTimeout_us</div><div class="ttdoc">Socket timeout in microseconds.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:238</div></div>
<div class="ttc" id="agroup__CO__epoll__interface_html_ga72c3ebdede1207e55e0915128f5a2c6a"><div class="ttname"><a href="group__CO__epoll__interface.html#ga72c3ebdede1207e55e0915128f5a2c6a">CO_epoll_close</a></div><div class="ttdeci">void CO_epoll_close(CO_epoll_t *ep)</div><div class="ttdoc">Close epoll, timerfd and eventfd.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.c:122</div></div>
<div class="ttc" id="agroup__CO__epoll__interface_html_ga2aef637d4f2f818a7d95a7bfac251132"><div class="ttname"><a href="group__CO__epoll__interface.html#ga2aef637d4f2f818a7d95a7bfac251132">CO_epoll_processLast</a></div><div class="ttdeci">void CO_epoll_processLast(CO_epoll_t *ep)</div><div class="ttdoc">Closing function for an epoll event.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.c:187</div></div>
<div class="ttc" id="agroup__CO__epoll__interface_html_ga07eaf2c954bb09b6420acee62ff207c3"><div class="ttname"><a href="group__CO__epoll__interface.html#ga07eaf2c954bb09b6420acee62ff207c3">CO_epoll_initCANopenGtw</a></div><div class="ttdeci">void CO_epoll_initCANopenGtw(CO_epoll_gtw_t *epGtw, CO_t *co)</div><div class="ttdoc">Initialization of gateway functions in CANopen reset-communication section.</div></div>
<div class="ttc" id="agroup__CO__epoll__interface_html_gab2f3f7bb7d885799c462e95a45563b69"><div class="ttname"><a href="group__CO__epoll__interface.html#gab2f3f7bb7d885799c462e95a45563b69">CO_epoll_closeGtw</a></div><div class="ttdeci">void CO_epoll_closeGtw(CO_epoll_gtw_t *epGtw)</div><div class="ttdoc">Close gateway-ascii sockets.</div></div>
<div class="ttc" id="astructCO__epoll__t_html_af0e85776b360999b0830c943eb4505eb"><div class="ttname"><a href="structCO__epoll__t.html#af0e85776b360999b0830c943eb4505eb">CO_epoll_t::event_fd</a></div><div class="ttdeci">int event_fd</div><div class="ttdoc">Notification event file descriptor.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:93</div></div>
<div class="ttc" id="astructCO__t_html"><div class="ttname"><a href="structCO__t.html">CO_t</a></div><div class="ttdoc">CANopen object - collection of all CANopenNode objects.</div><div class="ttdef"><b>Definition:</b> CANopen.h:301</div></div>
<div class="ttc" id="astructCO__epoll__t_html_a6e4aeb640b634a49a290aa9b4bc3b517"><div class="ttname"><a href="structCO__epoll__t.html#a6e4aeb640b634a49a290aa9b4bc3b517">CO_epoll_t::epoll_fd</a></div><div class="ttdeci">int epoll_fd</div><div class="ttdoc">Epoll file descriptor.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:91</div></div>
<div class="ttc" id="astructCO__epoll__t_html_a0595fb48d72a8592e6649e3de7b3477c"><div class="ttname"><a href="structCO__epoll__t.html#a0595fb48d72a8592e6649e3de7b3477c">CO_epoll_t::timerInterval_us</a></div><div class="ttdeci">uint32_t timerInterval_us</div><div class="ttdoc">Interval of the timer in microseconds, from CO_epoll_create()</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:97</div></div>
<div class="ttc" id="agroup__CO__epoll__interface_html_ga7165df8b37ca1ed59476773fa075470c"><div class="ttname"><a href="group__CO__epoll__interface.html#ga7165df8b37ca1ed59476773fa075470c">CO_epoll_createGtw</a></div><div class="ttdeci">CO_ReturnError_t CO_epoll_createGtw(CO_epoll_gtw_t *epGtw, int epoll_fd, int32_t commandInterface, uint32_t socketTimeout_ms, char *localSocketPath)</div><div class="ttdoc">Create socket for gateway-ascii command interface and add it to epoll.</div></div>
<div class="ttc" id="astructCO__epoll__t_html_aa047c5d68bb87515a1089cf5c75d847f"><div class="ttname"><a href="structCO__epoll__t.html#aa047c5d68bb87515a1089cf5c75d847f">CO_epoll_t::previousTime_us</a></div><div class="ttdeci">uint64_t previousTime_us</div><div class="ttdoc">time value from the last process call in microseconds</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:107</div></div>
<div class="ttc" id="astructCO__epoll__gtw__t_html_ae529dc4279406811f0b97593816e863c"><div class="ttname"><a href="structCO__epoll__gtw__t.html#ae529dc4279406811f0b97593816e863c">CO_epoll_gtw_t::freshCommand</a></div><div class="ttdeci">bool_t freshCommand</div><div class="ttdoc">Indication of fresh command.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:248</div></div>
<div class="ttc" id="astructCO__epoll__gtw__t_html_a418eccf136c9f8e081d61f98289e0759"><div class="ttname"><a href="structCO__epoll__gtw__t.html#a418eccf136c9f8e081d61f98289e0759">CO_epoll_gtw_t::gtwa_fdSocket</a></div><div class="ttdeci">int gtwa_fdSocket</div><div class="ttdoc">Gateway socket file descriptor.</div><div class="ttdef"><b>Definition:</b> CO_epoll_interface.h:244</div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_4b0ffcb7ab18f30ccfa85879d0b1134f.html">socketCAN</a></li><li class="navelem"><a class="el" href="CO__epoll__interface_8h.html">CO_epoll_interface.h</a></li>
    <li class="footer">Generated on Thu Dec 24 2020 14:30:50 for CANopenNode by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
